package andriod.samples;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AndriodSamples extends Activity {


	OnClickListener listener0 = null;
	OnClickListener listener1 = null;
	OnClickListener listener2 = null;
	OnClickListener listener3 = null;
	
	Button button0;
	Button button1;
	Button button2;
	Button button3;

	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		

		listener0 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent0 = new Intent(AndriodSamples.this, ActivityLayouts.class);
				startActivity(intent0);

			}
		};
		
		button0 = (Button) findViewById(R.id.Layouts_btn);
		button0.setOnClickListener(listener0);		
		
		
		listener1 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent1 = new Intent(AndriodSamples.this, ActivityControls_x.class);
				startActivity(intent1);

			}
		};


		button1 = (Button) findViewById(R.id.controls_btn);  
		button1.setOnClickListener(listener1); 
		
		listener2 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent2 = new Intent(AndriodSamples.this, ActivityDataStore.class);
				startActivity(intent2);

			}
		};


		button2 = (Button) findViewById(R.id.DataStore);  
		button2.setOnClickListener(listener2);
		
		listener3 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent3 = new Intent(AndriodSamples.this, ActivityBroadcastReceiver.class);
				startActivity(intent3);

			}
		};


		button3 = (Button) findViewById(R.id.BroadcastReceiver);  
		button3.setOnClickListener(listener3); 
	}

}